package com.zj.core.view

import android.content.Context
import android.widget.EditText

class MeuseEditText(context: Context?) : EditText(context) {
    var meuseEditViewWidth=315                           //editview默认宽度

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
        meuseEditViewWidth =MeasureSpec.getSize(widthMeasureSpec)
    }

    fun getMeuseWidth():Int{
        return meuseEditViewWidth
    }
}